

<link rel="stylesheet" href="__CSS__/mall.css"/>

<script src="__STATIC__/js/ace-extra.min.js"></script>
<script src="__STATIC__/js/laydate.js"></script>

<div class="page-header mbx">
    <h1>
        <small>
            {$companyName}分公司管理 ｜股东列表 <i class="ace-icon fa fa-times xx"></i>
        </small>
    </h1>
</div>
<div class="mbx" style="padding-bottom: 200px;">
    <div class="widget-box transparent">
       <!-- <div class="nav-tab" style="position: relative">
            <ul class="nav-tab-title ">
                <li class="nav-this">股东列表</li>
            </ul>
        </div>-->
        <div class="widget-body">
            <div class="widget-main padding-10">
                <div class="row">
                    <div class="col-xs-12">
                        <form class="form-horizontal s_input-bgcolor" method="post" action="/admin/Stockholder/index">
                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label text-right no-padding-right" >用户名： </label>
                                    <div class="col-sm-8">
                                        <input type="text" name="uname" value="{$postArr.uname}" placeholder="请输入用户名" class="form-control">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label text-right no-padding-right" for="form-field-1-3">真实姓名： </label>
                                    <div class="col-sm-8">
                                        <input type="text" id="form-field-1-3" name="tname" value="{$postArr.tname}" placeholder="请输入股东真实姓名" class="form-control">
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                                <div class="form-group">
                                    <div class="col-sm-3" style="padding: 0;">
                                        <select class="form-control" name="status">
                                            <option {if condition="$postArr.status eq '申请时间' "}selected='selected'{/if}>申请时间</option>
                                            <option {if condition="$postArr.status eq '审核通过时间' "}selected='selected'{/if}>审核通过时间</option>
                                        </select>
                                    </div>
                                    <div class="col-sm-8">
                                        <div class="input-daterange input-group">
                                            <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="开始时间" name="start" id="start" value="{$postArr.start}">
                                            <span class="input-group-addon" style="background: none;border: none;">
																	-
																</span>
                                            <input type="text" class="input-sm form-control hm-shop-upgrade" placeholder="结束时间" name="end" id="end" value="{$postArr.end}">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="text-right">
                                <button class="btn " style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">查询</button>
                            </div>
                        </form>
                        <div class="space"></div>
                        <div class="row">
                            <div class="col-xs-12">
                                <table id="sample-table-1" class="table table-hover" width="100%" style="table-layout:fixed">
                                    <thead>
                                    <tr>
                                        <th class="left">用户名</th>
                                        <th class="left">真实姓名</th>
                                        <th class="left">股东类型</th>
                                        <th class="left">占股比例</th>
                                        <th class="left">申请时间</th>
                                        <th class="left">审核通过时间</th>
                                        <th class="center">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {empty name="resList"}
                                    <tr class="s_tr-vertical">
                                        <td colspan="7" class="center" style="color: red;">没有查询到结果</td>
                                    </tr>
                                    {/empty}
                                    {volist name="resList" id="vo"}
                                    <tr class="s_tr-vertical s_tr-border s_shoplist-first">
                                        <td>{$uRes[$vo[CustomerId]][uname]}</td>
                                        <td>{$uRes[$vo[CustomerId]][tname]}</td>
                                        <td class="s_shop-input left">{$stockRes[$vo.StockTypeId]}</td>
                                        <td class="left">{$vo.StockNum}%</td>
                                        <td class="left">{$vo.CreateOn}</td>
                                        <td class="left">{$vo.CheckedOn}</td>
                                        <td class="center s_order-fun border-right ">
                                            <a onclick="stockDetailed({$vo.Id},{$vo.CustomerId})" style="cursor: pointer">分红明细</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.span -->
                        </div>
                        <!-- /.row -->


                    </div>
                    <!-- /.col -->
                </div>
            </div>
        </div>
    </div>
    <div class="text-center">
        {$pageShow}
    </div>
    <div id="stockDetailed" style="width: 100%;height: 100%;position: fixed;left: 0;top: 0;z-index: 9000000;display: none">
    </div>
</div>
<script type="text/javascript">
    laydate.render({
        elem: '#start' //指定元素
    });
    laydate.render({
        elem: '#end' //指定元素
    });

    function stockDetailed(id,cid) {
        var html = '<span style="width: 100%;height: 100%;position: absolute;left: 0;top: 0;background: rgba(0,0,0,0.4)"></span>';
            html = html + '<iframe src="/admin/stockholder/stockdetailed?id='+id+'&cid='+cid+'"frameborder="0" style="width:1000px;height:700px;';
            html = html + 'position: absolute;left: 50%;top: 50%;margin-left:-451px;margin-top:-336px;background: #fff;z-index: 1;"></iframe>';
        $('#stockDetailed').html(html);
        $('#stockDetailed').show();
    }

    function closeDialog() {
        $('#stockDetailed').hide();
    }
</script>